package com.lai.hospital.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lai.hospital.dto.UserPatientDTO;
import com.lai.hospital.entity.Patient;
import com.lai.hospital.entity.UserPatient;
import com.lai.hospital.vo.ConditionVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author : lai
 * @version V1.0
 * @Project: hospital-springboot
 * @Package com.lai.hospital.dao
 * @Description: 患者dao
 * @date Date : 2022年11月27日 23:37
 */
@Repository
public interface PatientDao extends BaseMapper<Patient> {
    List<UserPatientDTO> listPatientByUserId(@Param("userId") Integer userId);

    List<Patient> listMyPatient(@Param("current")Long current,@Param("size")Long size,@Param("conditionVO")ConditionVO conditionVO, @Param("idList")List<Integer> idList);
}
